package link.gpt.service;

import com.github.pagehelper.PageInfo;
import link.gpt.pojo.GoodsDetail;

/**
 * @version V1.0A
 * @uthor gpt
 * @Project holiday_task
 * @Package link.gpt.service
 * @Description: ${TODO}
 * @Date 2021/10/5 17:02
 */
public interface GoodsDetailService {

   GoodsDetail findById(Integer id);

   int buyGoods(Integer id, int num);

   PageInfo<GoodsDetail> findAllBySortIdAndPage(Integer sortId, int num, int size);


}
